package com.dene.serkan;

import android.app.Activity;
import android.os.Bundle;
import android.view.View;
import android.view.View.OnClickListener;
import android.widget.Button;
import android.widget.EditText;


public class DenemActivity extends Activity {
	static int a=0;
	/** Called when the activity is first created. */
	@Override
	public void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.main);

		final Button but = (Button) findViewById(R.id.button);
		final EditText ed = (EditText) findViewById(R.id.editText);

		but.setOnClickListener(new OnClickListener() {
			public void onClick(View v) {
				ed.setText("SERKAN SERTER "+a);
				a++;
			}
		});
	}
}